//
//  JaneTextTopicModelCell.m
//  EPA
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 张静. All rights reserved.
//

#import "JaneTextTopicModelCell.h"

@interface JaneTextTopicModelCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UIImageView *uanmeImageView;
@property (weak, nonatomic) IBOutlet UILabel *unameLabel;
@property (weak, nonatomic) IBOutlet UILabel *addtime_fLabel;
@property (weak, nonatomic) IBOutlet UILabel *addtimeLabel;


//@property (nonatomic,strong)UILabel *TilteTextlable;
//@property (nonatomic,strong)UILabel *ContentTextlable;
@end


@implementation JaneTextTopicModelCell
- (void)setModel:(JaneTextTopicModel *)model {
    if (_model != model) {
        _model = model;
    }
}

- (void)layoutSubviews {
    self.titleLabel.text = self.model.title;
    self.contentLabel.text = self.model.content;
    self.addtimeLabel.text =[NSString stringWithFormat:@"%@",self.model.addtime];
    self.addtime_fLabel.text = self.model.addtime_f;
    [self.uanmeImageView sd_setImageWithURL:[NSURL URLWithString:self.model.userinfo[@"icon"]]];
    self.unameLabel.text = self.model.userinfo[@"uname"];
    
//    self.TilteTextlable = self.titleLabel;
//    self.ContentTextlable = self.contentLabel;
//    self.TilteTextlable.text = self.titleLabel.text;
//    self.ContentTextlable.text = self.contentLabel.text;
}
+ (CGFloat)height {
    return 200;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
